package sctu.edu.java.year2016.team08.lisonghong.day20160521.chapter4_1;

import java.util.Scanner;

/**
 * 编写java程序，判断变量x是奇数还是偶数。
 * Created by 松红 on 2016/5/21.
 */
public class chapter4_1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入x的值");
        int x = scan.nextInt();
        if (x % 2 == 0)
            System.out.println("偶数");
        else
            System.out.println("奇数");
    }
}
